From 37b59fcd75ae75cc61af6142fc5fbd72429f96d4 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Mon, 20 Jul 2026 17:47:02 +0000 Subject: [PATCH] Make afm and pfb timezone-independent Gbp-Pq: Name 0005-afm-and-pfb-timezone-independent.patch --- fontforge/dumppfa.c | 2 +- fontforge/splinesaveafm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fontforge/dumppfa.c b/fontforge/dumppfa.c index 59e6647..2ed129b 100644 --- a/fontforge/dumppfa.c +++ b/fontforge/dumppfa.c @@ -1781,7 +1781,7 @@ static void dumpfontcomments(void (*dumpchar)(int ch,void *data), void *data, dumpf(dumpchar,data,"%%%%Title: %s\n", sf->fontname); dumpf(dumpchar,data,"%%Version: %s\n", sf->version); } - dumpf(dumpchar,data,"%%%%CreationDate: %s", ctime(&now)); + dumpf(dumpchar,data,"%%%%CreationDate: %s", asctime(gmtime(&now))); if ( author!=NULL ) dumpf(dumpchar,data,"%%%%Creator: %s\n", author); diff --git a/fontforge/splinesaveafm.c b/fontforge/splinesaveafm.c index 446faa7..463533e 100644 --- a/fontforge/splinesaveafm.c +++ b/fontforge/splinesaveafm.c @@ -1176,7 +1176,7 @@ static void AfmSplineFontHeader(FILE *afm, SplineFont *sf, int formattype, "StartFontMetrics 2.0\n" ); fprintf( afm, "Comment Generated by FontForge %s\n", FONTFORGE_VERSION ); now = GetTime(); - fprintf(afm,"Comment Creation Date: %s", ctime(&now)); + fprintf(afm,"Comment Creation Date: %s", asctime(gmtime(&now))); fprintf( afm, "FontName %s\n", sf->fontname ); if ( sf->fullname!=NULL ) fprintf( afm, "FullName %s\n", sf->fullname ); if ( sf->familyname!=NULL ) fprintf( afm, "FamilyName %s\n", sf->familyname ); -- 2.39.5